// Copyright 2009 StarCite Inc.  All rights reserved.
// QuickSort.java 4:55:19 PM danny.liu
package com.billowsoft.lab.algorithm.sort;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

/**
 * @author danny.liu Jun 4, 2012
 * @version 1.0
 * 
 */
public class QuickSort {

	public static void main(String[] args) {
		List<Integer> numbers = new ArrayList<Integer>();
		int count = 100000;
		for(int i =0; i<count; i++){
			int number = Double.valueOf((Math.random() * count)).intValue() + 1;
			numbers.add(number);
		}
		Collections.sort(numbers);
		
		System.out.println(numbers.size());
		
		System.out.println(numbers);
		
	}
}
